/* src/App.css */
:root {
  --primary-color: #4a6baf;
  --secondary-color: #5d7fc4;
  --text-color: #333;
  --background: rgba(255, 255, 255, 0.9);
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --progress-color: #5cb85c;
}

.app-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--background);
  border-radius: 12px !important;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
  /* border: 1px solid var(--border-color); */
  z-index: 9999;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.app-container.locked {
  cursor: default;
}

.app-container.show-settings {
  height: auto;
}

.header.drag {
  -webkit-app-region: drag;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: var(--primary-color);
  color: white;
  cursor: move;
  -webkit-app-region: no-drag;
}

.title {
  font-weight: 600;
  font-size: 16px;
}

.controls {
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 12px;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.close-btn:hover {
  background: #e74c3c;
}

.main-display {
  padding: 20px 15px;
  text-align: center;
}

.time-display {
  font-size: 36px;
  font-weight: 700;
  font-family: "Courier New", monospace;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.money-display {
  font-size: 28px;
  font-weight: 600;
  color: #27ae60;
  margin-bottom: 20px;
}

.progress-container {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--progress-color);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.settings-panel {
  padding: 15px;
  border-top: 1px solid var(--border-color);
  background: rgba(245, 245, 245, 0.8);
}

.settings-panel h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.form-actions button {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.form-actions button:first-child {
  background: var(--primary-color);
  color: white;
}

.form-actions button:first-child:hover {
  background: var(--secondary-color);
}

.form-actions button:last-child {
  background: #f0f0f0;
  color: #555;
}

.form-actions button:last-child:hover {
  background: #e0e0e0;
}

.work-time-display {
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #777;
  border-top: 1px solid var(--border-color);
  background: rgba(245, 245, 245, 0.6);
}

.app-drag-container {
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0);
  border-radius: 12px !important;
  padding: 0;
  margin: 0;
  -webkit-app-region: no-drag;
  overflow: hidden;
}

.app-drag-container.drag {
  -webkit-app-region: drag;
}

.no-drag {
  -webkit-app-region: no-drag !important;
}

.month-earned {
  color: #ff9800;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 1px 2px #fff, 0 0px 1px #bfa100;
}
